package com.wiken.storeservice.feign;

import com.wiken.servicecommon.common.R;
import com.wiken.storeservice.entity.Store;
import com.wiken.storeservice.entity.StoreType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "store-service", path = "/storeservice/storetype")
public interface StoreTypeFeignClient {
    @DeleteMapping("delStoreTypeByStoreId")
    R delStoreTypeByStoreId(@RequestBody StoreType storeType, @RequestHeader("Authorization") String token);

    @PostMapping("addStoreType")
    R addStoreType(@RequestBody StoreType storeType, @RequestHeader("Authorization") String token);

    @PutMapping("updateByStoreId")
    R updateByStoreId(@RequestBody StoreType storeType, @RequestHeader("Authorization") String token);

    @PostMapping("getTypeByStoreId")
    R getTypeByStoreId(@RequestBody Store store);
}
